package org.ourgrid.broker.business.scheduler.workqueue.xmlcreator;

public class GetFileInfoXMLCreator implements XMLCreatorIF{

	/**
	 * <GET_FILE_INFO handleId='long' localFileName='String' description='String' 
	 * workerID='String' requestID='long' destinationFileName='String'/> 
	 */
	public String getXML(long handleId, String localFileName, String description, 
			String workerID, long requestID, String destinationFileName){
		
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("<GET_FILE_INFO ");
		buffer.append("handleId='" + handleId + "' ");
		buffer.append("fileName='" + localFileName + "' ");
		buffer.append("description='" + description + "' ");
		buffer.append("workerID='" + workerID + "' ");
		buffer.append("requestID='" + requestID + "' ");
		buffer.append("destinationFileName='" + destinationFileName + "' ");
		buffer.append("/>");
		
		return buffer.toString();
	}
}
